<?php
$this->breadcrumbs=array(
	'Subscribe'=>array('/subscribe'),
	'Subscribe Payment',
);
$this->pageTitle='Subscribe Payment';

?>
<h1>Payment</h1>
<div class="rc_main">
<p>Subscribe to <strong><?php echo $shop->name;?></strong></p>
<form method="post" name="paypal_form" action="<?php echo $p->url; ?>">
<?php
$formstr='';
foreach ($p->fields as $name => $value) {
	if($name=='amount'){
		$formstr.= "Amount: ".CHtml::dropDownList($name, $value, $priceList);
	}else{
		$formstr.= "<input type=\"hidden\" name=\"$name\" value=\"$value\"/>\n";
	}
}
//		$formstr.= "<center><br/><br/>If you are not automatically redirected to ";
//		$formstr.= "paypal within 5 seconds...<br/><br/>\n";
$formstr.= "<center><input type=\"submit\"
	 value=\"Pay\"><img src=\"".Yii::app()->baseUrl."/images/paypal_logo.gif\"/><img src=\"".Yii::app()->baseUrl."/images/verisignlogo.gif\"/></center>\n";
echo $formstr;
?></form>
</div>
